package Array;

public class Stack {
    private SuperArray superArray = new SuperArray();
    public void push(int data){
        superArray.addToTail(data);
    }
    public Object pop(){
        Object select = superArray.select(superArray.size()-1);
        superArray.del(superArray.size()-1);
        return select;
    }

    public Boolean isEmpty(){
        return superArray.size()==0;
    }
}
